import request from "@/utils/request";

//
/**
 *   提交试卷
 * @param {*} paperId   试卷id
 * @param {*} data  答案详情
 * @returns
 */
export function submitExam(paperId, data) {
  return request({
    url: "/exam/do/" + paperId,
    method: "post",
    data: data,
  });
}

/**
 * 开始考试，记录信息
 * @param {*} data paperid
 * @returns
 */
export function doExam(data) {
  return request({
    url: "/exam/do",
    method: "post",
    data: data,
  });
}
